package com.zmzncs.lmtc.module.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zmzncs.lmtc.module.shop.pojo.shop_ticket.ShopTicket;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zmzncs.lmtc.module.shop.pojo.shop_ticket.ShopTicketAddForm;
import com.zmzncs.lmtc.module.shop.pojo.shop_ticket.ShopTicketDTO;
import com.zmzncs.lmtc.module.shop.pojo.shop_ticket.ShopTicketSelectForm;

import java.util.List;

/**
 * <p>
 * 商户-优惠券 服务类
 * </p>
 *
 * @author 高博文
 * @since 2021-05-20
 */
public interface ShopTicketService extends IService<ShopTicket> {

    /**添加优惠券*/
    void add(ShopTicketAddForm form);

    /**条件分页查询优惠券信息*/
    IPage<ShopTicketDTO> getTicketPage(ShopTicketSelectForm form);

    /**查询商户所有优惠券信息*/
    List<ShopTicketDTO>  getTicketByShopId(Long shopId);
}
